﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Nancy;
using Nancy.ViewEngines;

namespace NancyOauth2.Modules
{
    public class TestModule:Nancy.NancyModule
    {
        public TestModule() : base("test")
        {
            Get["/"] = _ =>
            {
                return View["index"];
            };

            Get["/somejsonp"] = _ =>
            {
                return Response.AsJson("jsonp success") ;
            };
        }
    }
}